package com.micro.modual.mapper;


import com.micro.core.frame.mapper.BasicsMapper;
import com.micro.modual.entity.Prefecture;
import org.apache.ibatis.annotations.Param;

/**
*  <h1></h1>
 * @author levelcoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:11:10
 */
public interface PrefectureMapper extends BasicsMapper<Prefecture>{


    /**
     * <h2>根据专区名称查询是否存在</h2>
     * @param prefectureName 专区名称
     * @return
     */
    int findPrefectureNameExist(@Param("prefectureName") String prefectureName);

    /**
     * <h2>根据专区编号查询专区信息</h2>
     * @param prefectureCode 专区编号
     * @return
     */
    Prefecture findPrefectureByCode(@Param("prefectureCode") String prefectureCode);
}
